package com.wangguan.controller;

import com.wangguan.pojo.Msg;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wangguan")
public class MyController
{
    //参数对象
    private String str;
        //转发支付请求
    @RequestMapping("/zhifu")
    public Msg zhifu(@RequestBody String str)
    {
        Msg msg = new Msg();
        CloseableHttpClient build = HttpClientBuilder.create().build();
        HttpPost httpPost = new HttpPost("");
        return msg;
    }

    //回调接口
    @RequestMapping("/huidiao")
    public void huidiao()
    {

    }

}
